<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>学生列表</title>

    <!-- Bootstrap -->
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">

    <!-- HTML5 shim 和 Respond.js 是为了让 IE8 支持 HTML5 元素和媒体查询（media queries）功能 -->
    <!-- 警告：通过 file:// 协议（就是直接将 html 页面拖拽到浏览器中）访问页面时 Respond.js 不起作用 -->
    <!--[if lt IE 9]>
    <script src="https://cdn.jsdelivr.cn/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
    <script src="https://cdn.jsdelivr.cn/npm/respond.js@1.4.2/dest/respond.min.js"></script>
    <![endif]-->
    <script src="js/jquery-3.3.1.js"></script>
    <script src="js/getParameter.js"></script>
    <script>
        function add1(){
/*
            $(".sub").click(function (){
                var uid = $("#uid").val();
                var YuWen = $("#YuWen").val();
                var ShuXue = $("#ShuXue").val();
                var YingYu = $("#YingYu").val();
                var WuLi = $("#WuLi").val();
                var HuaXue = $("#HuaXue").val();
                var ShengWu = $("#ShengWu").val();
                var DiLi = $("#DiLi").val();
                var LiShi = $("#LiShi").val();
                var ZhengZhi = $("#ZhengZhi").val();
                var TiYu = $("#TiYu").val();

                var achievement = {
                    "uid":uid,
                    "yuWen":YuWen,
                    "shuXue":ShuXue,
                    "yingYu":YingYu,
                    "wuLi":WuLi,
                    "huaXue":HuaXue,
                    "shengWu":ShengWu,
                    "diLi":DiLi,
                    "liShi":LiShi,
                    "zhengZhi":ZhengZhi,
                    "tiYu":TiYu
                }
                // alert(achievement);

                $.get("achieve/add",{uid:uid,yuWen:YuWen},function (){

                });
                location.href="student_list.html";

                //alert(uid);
            })*/
            // location.href="student_list.html";
        }
        $(function (){
            var id = getParameter("id");
            if (id!=undefined){
                $("#uid").val(id);
            }
            //add1();
            // $(".sub").click(function (){
            //     location.href="student_list.html";
            // })
        })
    </script>
</head>
<body>
<div class="col-md-6 col-md-offset-3">
    <form action="achieve/add" method="post">
<!--    <form>-->
        <div class="form-group">
            <label for="uid">学生id</label>
            <input type="text" class="form-control" id="uid" placeholder="请输入学生id" name="uid">
            <a type="button" class="btn btn-info" href='chose_student_list.html'>选择学生</a>
        </div>
        <div class="form-group">
            <label for="YuWen">语文</label>
            <input type="text" class="form-control" id="YuWen" placeholder="请输入语文成绩" name="YuWen">
        </div>
        <div class="form-group">
            <label for="ShuXue">数学</label>
            <input type="text" class="form-control" id="ShuXue" placeholder="请输入数学成绩" name="ShuXue">
        </div>
        <div class="form-group">
            <label for="YingYu">英语</label>
            <input type="text" class="form-control" id="YingYu" placeholder="请输入英语成绩" name="YingYu">
        </div>
        <div class="form-group">
            <label for="WuLi">物理</label>
            <input type="text" class="form-control" id="WuLi" placeholder="请输入物理成绩" name="WuLi">
        </div>
        <div class="form-group">
            <label for="HuaXue">化学</label>
            <input type="text" class="form-control" id="HuaXue" placeholder="请输入化学成绩" name="HuaXue">
        </div>
        <div class="form-group">
            <label for="ShengWu">生物</label>
            <input type="text" class="form-control" id="ShengWu" placeholder="请输入生物成绩" name="ShengWu">
        </div>
        <div class="form-group">
            <label for="DiLi">地理</label>
            <input type="text" class="form-control" id="DiLi" placeholder="请输入地理成绩" name="DiLi">
        </div>
        <div class="form-group">
            <label for="LiShi">历史</label>
            <input type="text" class="form-control" id="LiShi" placeholder="请输入历史成绩" name="LiShi">
        </div>
        <div class="form-group">
            <label for="ZhengZhi">政治</label>
            <input type="text" class="form-control" id="ZhengZhi" placeholder="请输入政治成绩" name="ZhengZhi">
        </div>
        <div class="form-group">
            <label for="TiYu">体育</label>
            <input type="text" class="form-control" id="TiYu" placeholder="请输入体育成绩" name="TiYu">
        </div>

        <input type="submit" class="btn btn-default sub" value="提交"></input>
    </form>
</div>
</body>
</html>